// 加载天地图
export const addskyLayer = (viewer, url) => {
  const imageLayer = new Cesium.ImageryLayer(new Cesium.WebMapTileServiceImageryProvider({
    url: url,
    layer: "tdtImg_c",
    style: "default",
    format: "tiles",
    tileMatrixSetID: "c",
    subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"],
    tilingScheme: new Cesium.GeographicTilingScheme(),
    tileMatrixLabels: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"],
    maximumLevel: 17,
  }));
  viewer.imageryLayers.add(imageLayer);
  return imageLayer;
};

